<template>
    <van-icon size="30" class="icon1" @click="$router.go(-1)" name="arrow-left" />
    <!-- 密码输入框 -->
    <van-password-input :value="value" :focused="showKeyboard" @focus="showKeyboard = true" />
    <!-- 数字键盘 -->
    <van-number-keyboard v-model="value" :show="showKeyboard" @blur="showKeyboard = false" />
</template>

<script lang='ts' setup>
import { ref } from 'vue';
const value = ref('');
const showKeyboard = ref(true);
</script>
 
<style lang='scss' scoped>
.van-password-input{
    margin-top: 200px;
}
.icon1{
    position: fixed;
    left: 15px;
    top: 15px;
}
</style>